home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-11-09 | 8.9 KB | 27 lines | [TEXT/R*ch] |
- syslog(3C) syslog(3C)
-
- NAME
- syslog(), openlog(), closelog(), setlogmask() - control system log
-
- SYNOPSIS
- #include <syslog.h>
-
- int syslog(int priority, const char *message, int parameters, ...);
-
- int openlog(const char *ident, int logopt, int facility);
-
- int closelog(void);
-
- int setlogmask(int maskpri);
-
- DESCRIPTION
- syslog() writes a message onto the system log maintained by
- syslogd (see syslogd(1M)). The message is tagged with
- priority. The message is similar to a printf(3S)
- format string except that %m is replaced by the error
- message associated with the current value of errno. A
- trailing newline is added if needed.
-
- This message is read by syslogd and written to the
- system console, log files, selected users' terminals,
- or forwarded to